import VueRouter from "vue-router"
import home from "./components/tabbar/home.vue"
import member from "./components/tabbar/member.vue"
import shopcar from "./components/tabbar/shopcar.vue"
import search from "./components/tabbar/search.vue"
import NewsList from "./components/news/newslist.vue"
import NewsInfo from "./components/news/newsinfo.vue"
import Photolist from "./components/photos/photolist.vue"
import Photoinfo from "./components/photos/photoinfo.vue"
import Goodlist from "./components/goods/goodlist.vue"
import GoodInfo from "./components/goods/goodinfo.vue"
import GoodInfoComment from "./components/goods/goodcomment.vue"
import GoodInfoDesc from "./components/goods/gooddesc.vue"
var router=new VueRouter({
    routes:[
        {path:"/",redirect:"/home"},
        {path:"/home",component:home},
        {path:"/member",component:member},
        {path:"/shopcar",component:shopcar},
        {path:"/search",component:search},
        {path:"/home/newslist",component:NewsList},
        {path:"/home/newsinfo/:id",component:NewsInfo},
        {path:"/home/photolist",component:Photolist},
        {path:"/home/photoinfo/:id",component:Photoinfo},
        {path:"/home/goodlist",component:Goodlist},
        {path:"/home/goodinfo/:id",component:GoodInfo},
        {path:"/home/gooddesc/:id",component:GoodInfoDesc,name:"gooddesc"},
        {path:"/home/goodcomment/:id",component:GoodInfoComment,name:"goodcomment"}
    ],
    linkActiveClass:"mui-active"
})
export default router